#ifndef ITEMMODEL_H
#define ITEMMODEL_H

#include <QAbstractItemModel>

#include "keybasedlistmodel.h"

class ItemCollection;
class GameItem;

class ItemModel : public KeyBasedListModel
{
    Q_OBJECT
public:
    ItemModel(const ItemCollection *items, QObject *parent = 0);

protected:
    QVariant getDataForKey(const QString& key, int column, int role) const;

private:
    const ItemCollection *_items;
};

#endif // ITEMMODEL_H
